# encoding: UTF-8
 
class Site::HomeController < ApplicationController

  layout 'site'

  def home
    @carsousel = Carousel.open_status.pages.limit(5)
    @client = Download.open_status.client.first
    set_seo_meta ''
  end
  
  def index
    @carousel = Carousel.open_status.site.limit(5)
    @full = Topic.full.limit(7)
    @main = Topic.main.limit(7)
    @game = Topic.game.limit(7)
    @fixs = Topic.fixs.limit(7)
    @gamedata = Level.open_status.level_guides
    @features = Feature.open_status.features
    @equips_sorts = Sort.open_status.equips_sorts
    @newto = Manual.open_status.newto_all
    @screen = Photo.open_status.screen.limit(3)
    @design = Photo.open_status.design.limit(3)
    @player = Photo.open_status.player.limit(3)
    @event = Event.open_status.event.first
    @special = Event.open_status.special.first
    @links = Link.open_status.all 
    @xunbao = Raid.open_status.xunbao.limit(5)
    @hanghui = Raid.open_status.hanghui.limit(5)
    set_seo_meta '龍翔密传官方网站'
  end

end
